	Ext.BLANK_IMAGE_URL = "../script/ext-2.0.2/resources/images/default/s.gif"; 
	
	var storeLogQueryManage = new Ext.data.Store({
        proxy: new Ext.data.HttpProxy({
        	url: 'logInfo!getList.action?dateTime='+new Date().getTime()
        }),
        reader: new Ext.data.JsonReader({
            root: 'ZANY',
            totalProperty: "results",
            fields:["id","creater","createDate","resourceName","dataBefore","dataAfter","doorId"]
        }),
        remoteSort: true
    });
	
	storeLogQueryManage.load();
	
	var colLogQueryManage=new Ext.grid.ColumnModel([
		{header:"修改者",dataIndex:"creater",width:200,sortable:true},
		{header:"修改时间",dataIndex:"createDate",width:200,sortable:true},
		{header:"功能名称",dataIndex:"resourceName",width:300,sortable:true},
		{header:"修改前数据",dataIndex:"dataBefore",width:100,sortable:true},
		{header:"修改后数据",dataIndex:"dataAfter",width:100,sortable:true},
		{header:"户",dataIndex:"doorId",width:200,sortable:true}
		]);
							
	var logQueryManage = new Ext.grid.GridPanel({
		id:'logQueryManage',
		title :'[日志查询]信息',
		height:500,
		stripeRows :true,
		bodyStyle:'width:100%',
        disableSelection:true,
		cm: colLogQueryManage,
		viewConfig: {
            forceFit: false
        },
		store: storeLogQueryManage,
		iconCls: 'details',
		animCollapse: true,
		trackMouseOver:false, 
        loadMask: {msg:'正在加载[日志]信息，请稍侯……'},
		tbar:[
			  "-",{text:'导&nbsp;&nbsp出',iconCls:'excel',handler: toExcel}
			  //,
			  //"-",{text:'下&nbsp;&nbsp载',iconCls:'excel',handler: load}
		]
	});
	
	function toExcel(){
		var  params='logInfo!toExcel.action?dateTime='+new Date().getTime();
		window.location.href=params;
    }
    
	function getList(){
		var params={};
	    storeLogQueryManage.baseParams=params;
	    storeLogQueryManage.load({
	    	callback : function(r, options, success) {   
		        if (success == false) {   
		            Ext.Msg.alert("错误", storeLogQueryManage.reader.jsonData.msg);
		        }   
		    }
		});
	}

	Ext.onReady(function(){
		Ext.QuickTips.init(); 
	　　 Ext.form.Field.prototype.msgTarget = 'side';
			var port = new Ext.Viewport({
				layout : 'fit',
				frame : true,
				items : [this.logQueryManage]
	    	});
	});